import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.hkj.shop.model.User;
import com.hkj.shop.service.UserService;


public class Test {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext cc = new ClassPathXmlApplicationContext("applicationContext.xml");
		UserService us = (UserService) cc.getBean("userService");
		User user = new User();
		user.setAccount("huangkj");
		user.setPassword("111111");
		user.setEnable(1);
		us.save(user);
	}
}
